package com.dy.service.impl;

import com.dy.mapper.UserMapper;
import com.dy.pojo.User;
import com.dy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/4/8 9:45
 * @Version 1.0 (版本)
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    public boolean insertUser(User user) {
        return userMapper.insertUser(user);
    }

    public boolean deleteUserById(Integer uid) {
        return userMapper.deleteUserById(uid);
    }

    public boolean updateUser(User user) {
        return userMapper.updateUser(user);
    }

    public User selectById(Integer uid) {
        return userMapper.selectById(uid);
    }

    public List<User> selectUser() {
        return userMapper.selectUser();
    }
}
